package lab02.test12;

/**
 * Created by 14394 on 2017/10/20.
 */
public class Circle extends Shape {
    private float reduis;

    public Circle(float reduis) {
        this.reduis = reduis;
    }

    @Override
    public float area() {

        return (float) (3.14*reduis*reduis);
    }

    @Override
    public float perimeter() {
        return (float) (2*3.14*reduis);
    }
}
